import { LOGIN_OPERATE } from '../action/actionLogin';
export function loginData (state = {}, action) {
    switch (action.type) {
    case LOGIN_OPERATE:
        return Object.assign({}, state, {
            data: action.loginData.data.info,
            code: action.loginData.data.code,
            token: action.loginData.data.token,
        });
    default:
        return state;
    }
}
